package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息对象 gx_message
 * 
 * @author ruoyi
 * @date 2023-01-30
 */
public class GxMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息编号 */
    private Long messageId;

    /** 医生编号 */
    private Long userId;

    /** 医生编号 */
    private Long taskId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 已读（1：已读；0：未读） */
    @Excel(name = "已读", readConverterExp = "1=：已读；0：未读")
    private String isRead;

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public void setMessageId(Long messageId)
    {
        this.messageId = messageId;
    }

    public Long getMessageId() 
    {
        return messageId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setIsRead(String isRead) 
    {
        this.isRead = isRead;
    }

    public String getIsRead() 
    {
        return isRead;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("userId", getUserId())
            .append("taskId", getTaskId())
            .append("content", getContent())
            .append("isRead", getIsRead())
            .append("createTime", getCreateTime())
            .toString();
    }
}
